package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.AnnouncementsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 王越潇
 * @version 1.0
 * @Date 2024/9/28 11:31
 * @Type
 */
@RestController
@RequestMapping("/app/Announcements")
@Api(tags = "公告管理")
public class AnnouncementsController {
    @Resource
    private AnnouncementsService announcementsService;
    @GetMapping("findAnnouncements")
    @ApiOperation("公告列表")
    public ResponseResult findAnnouncements(){
        return announcementsService.findAnnouncements();
    }
}
